#ifndef PREFERENCE_H_
#define PREFERENCE_H_

#include "Content.h"
#include "User.h"

class Preference {
private:
	int id;
	Content content;
	User user;
	int rating;
	time_t date;
public:
	Preference() :
		id(NOT_FOUND) {
	}

	Preference(int id, Content content, User user, int rating, time_t date) :
		id(id), content(content), user(user), rating(rating), date(date) {
	}

	inline int getId() const {
		return id;
	}

	inline Content getContent() const {
		return content;
	}

	inline User getUser() const {
		return user;
	}

	inline int getRating() const {
		return rating;
	}

	inline time_t getDate() const {
		return date;
	}

	void setId(int id) {
		this->id = id;
	}

	void setContent(Content content) {
		this->content = content;
	}

	void setUser(User user) {
		this->user = user;
	}

	void setRating(int rating) {
		this->rating = rating;
	}

	void setDate(time_t date) {
		this->date = date;
	}
};

#endif /* PREFERENCE_H_ */
